package com.waste.game.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.waste.game.entity.entitiytv.VideoTopBean;
import com.waste.game.entity.entitiytv.VideoUpTimeBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = RuntimeException.class)
public interface VideoHomeTopTvDao extends BaseMapper<VideoTopBean> {
    //查询视频链接
//    @Select("SELECT tv_url FROM everydaylook WHERE tv_title=#{tvTitle}")
//    TvTitleBean getTvUrl(String tvTitle);

    //点击最多视频查询
//    @Select("SELECT id,tv_name,tv_pf,tv_title,tv_url,tv_pf_num,tv_img,color FROM videotop WHERE clack_num")
    List<VideoTopBean> getVideoTopList();
    //查询一条最多视频
    VideoTopBean getTvOne(@Param("id")Integer id);
    //修改一条最多视频
    int setTvOne(@Param("a")VideoTopBean videoTopBean);
}
